home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
CADAR
/
Convert
/
change-to-new-tonality
next >
Wrap
Text File
|
1998-10-22
|
743b
|
26 lines
change-to-new-tonality
symbols from-tonality to-tonality
It is a lot easier to write functions if you don't have
to think about dealing with transposed symbols like
'(a (-1 b c) d) so first you can convert
symbols to chromatic symbols with convert-to-chromatic
after processing you can convert back again with
change-to-new-tonality.
(convert-to-chromatic '(a (-2 b) = (-1 c d e) b = (-1 f d a) (-2 b)) '(blues1 c 5))
->(a b = egh d = jga b)
(this is just an example since symbol-transpose works fine
with transposed notes)
(symbol-transpose 1 '(a b = egh d = jga b))
->(b c = fhi e = khb c)
(change-to-new-tonality '(b c = fhi e = khb c)
'(chromatic c 5) '(blues1 c 5))
->((-2 b) (-1 b) = (c e -2 f) (-1 c) = (f e -2 b) (-1 b))